<?php
namespace Home\Model;
use Think\Model;
class SpecModel extends Model {
	public $page; //当前页
	public $perpage; //每页显示
	public $brand_id; //ID
	public $post; //提交的信息 数组
	public $table='zjy_spec';
	public $ids; //IDs 数组，用于删除

	//获取列表
	public function get_spec_list()
	{
		$Model=M("Spec");
		$list=$Model->field('spec_id,spec_name')->where('spec_show=1')->order('spec_sort asc,spec_id desc')->select();
		return $list;
	}

}